package com.liush.srb.core.service;

import com.liush.srb.core.pojo.entity.UserAccount;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.Map;

/**
 * <p>
 * 用户账户 服务类
 * </p>
 *
 * @author liush
 * @since 2023-03-25
 */
public interface UserAccountService extends IService<UserAccount> {

    String charge(BigDecimal amount, String token);

    String rechargeNotify(Map<String, Object> map);

    boolean updateAmountByBindCode(BigDecimal amount, String bindCode);

    UserAccount getUserAccountByUserId(Long id);

    boolean updateInvestAmountByUserId(Long userId, String voteAmt);

    boolean updateFreezeAmountByUserId(Long investUserId, BigDecimal investAmount);
}
